package com.googlecode.dgwt.client.dojo.impl;

import com.google.gwt.dom.client.Node;
import com.googlecode.dgwt.client.dojo.core.JsMap;


/**
 * @author      Wellington Tadeu dos Santos
 * @since       DGWT v0.01
 */
public class DojoImpl_IE extends DojoImpl {

    
    /**
     * (non-Javadoc)
     * @see com.googlecode.dgwt.client.dojo.impl.DojoImpl#getComputedStyle(Node)
     */
    @Override
    public native <V extends Object> JsMap<V> getComputedStyle(Node node) /*-{
        // IE (as of 7) doesn't expose Element like sane browsers
        return (
            node.nodeType == @com.google.gwt.dom.client.Node::ELEMENT_NODE ? 
            node.currentStyle :
            @com.googlecode.dgwt.client.dojo.core.JsObject::EMPTY_OBJECT
        );
    }-*/;


}
